﻿using Asp.Versioning;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Dtos;

namespace Himp.TaskScheduling.V1
{
    [Area(TaskSchedulingRemoteServiceConsts.ModuleName)]
    [RemoteService(Name = TaskSchedulingRemoteServiceConsts.RemoteServiceName)]
    [Route("api/taskScheduling/eventMsgRec")]
    [ApiVersion("1.0")]
    [ApiController]
    [ControllerName("eventMsgRec")]
    public class EventMsgRecServiceController : TaskSchedulingController, IEventMsgRecService
    {
        private IEventMsgRecService _eventMsgRecService;

        public EventMsgRecServiceController(IEventMsgRecService eventMsgRecService)
        {
            _eventMsgRecService = eventMsgRecService;
        }

        [HttpGet]
        [Route("list")]
        public Task<PagedResultDto<EventMsgRecDto>> GetListAsync([FromQuery] EventMsgRecInput input)
        {
            return _eventMsgRecService.GetListAsync(input);
        }
    }
}
